<!DOCTYPE html>
<html>
	<body>
		<!--CONTENT SECTION START-->
		<div id="main-wrapper-sec">
			<section>
				<!--INNER MAIN TITLE SECTION START-->
				<h2 class="inner-main-title pr-title">Register</h2>
				<!--INNER MAIN TITLE SECTION END-->
				
				<!--CONTENT MAIN SECTION START-->
				
				<div class="content-main-sec">
					<!--INNER CONTENT LEFT SECTION START--> 
					<div class="online-recharge-sec fleft">
						<div class="reg-sub-sec signup-left-sec">
						  <h2 class="or-pp-sec"><span class="fleft">Users Register here</span></h2>
						  <form id="formid" method="POST" onsubmit="return userReg()"> 
							  <ul class="login-form-sec">
							  <li><label>First Name :</label> <span>&nbsp;&nbsp;</span>
							  <input type="text" name="fname" id="fname" value="<?php if(isset($_POST['fname'])){ echo $_POST['fname'];} ?>" />
							  <span id="errorfname" class="error_valid" style="color:red;"></span>
							  </li>
							  <li><label>Last Name :</label> <span>&nbsp;&nbsp;</span> <input type="text" name="lname" id="lname" /><span id="errorlname" class="error_valid" ></span></li>
							  <li><label>Email :</label> <span>&nbsp;&nbsp;</span> <input type="text" name="email" id="email" /><span id="erroremail" class="error_valid" ></span><span id="regemailchecked" class="error_valid" ></span></li>
							  <li><label>Phone Number :</label> <span>&nbsp;&nbsp;</span> 
							  <span style="float:left;width:100px;margin-left:8px;"><?php include('cflag.phtml');?></span>
							  <!--<input name="tags" id="tags" type="text" style="width:50px;" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" value="India(+91)" />--> 
							  <span style="float:left;margin-left:20px; margin-bottom:10px;"><input name="pnum1" id="pnum1" type="text" /></span>
							  <span id="errorpnum1" class="error_valid" >
							  
							  </li><div class="clear"></div>
							  <li><label>Choose PIN :</label> <span>&nbsp;&nbsp;</span> <input type="password" name="pass" id="pass" /><span id="errorpass" class="error_valid" ></span>
							  <span id="errorpassword_numbers" class="error_valid" ></span>
							  <span id="lettershide">4-12 numbers, no letters</span>
							  </li>
							  <li><label>Confirm PIN :</label> <span>&nbsp;&nbsp;</span> <input type="password" name="cpass" id="cpass" /><span id="errorcpass" class="error_valid" ></span>
							  <span id="errorconpasswd1"> </span>
							  <span id="confirmpin"></span></li>
							  <li><input type="submit" value="Register"><li>
							  <input type="hidden" name="tag" id="tag" value="">
							</ul>
						  </form><br/>
						  <li><?php if(isset($_GET['id']) && $_GET['id']==1){ ?></br><p id="exit" style="color:red;margin:0px 0px 0px 158px;">Number already exits</p><?php } ?>
							  </li>
					  </div>
					  <div class="reg-sub-sec bor-left">
						  <h2 class="or-pp-sec"><span class="fleft">Corporates Register Here</span></h2>
						  <form id="formid1" method="POST" onsubmit="return corpReg()">
							  <ul class="login-form-sec">
								  <li><label>Company name :</label> <span>&nbsp;&nbsp;</span> <input type="text" name="cname" id="cname" /><span id="errorcname" class="error_valid" ></span></li>
								  <li><label>Username :</label> <span>&nbsp;&nbsp;</span> <input type="text" name="uname" id="uname" /><span id="erroruname" class="error_valid" ></span></li>
								  <li><label>Password :</label> <span>&nbsp;&nbsp;</span> <input type="password" name="password" id="password" /><span id="errorpassword" class="error_valid" ></span></li>
								  <li><label>Company address :</label> <span>&nbsp;&nbsp;</span> 
								  <textarea name="cadd" id="cadd" cols="" rows="" ></textarea>
								  <span id="errorcadd" class="error_valid" ></span></li>
								  <li><label>Email :</label> <span>&nbsp;&nbsp;</span> <input type="text" name="emailadd" id="emailadd" /><span id="erroremailadd" class="error_valid" ></span>
								  <span id="erroremailaddcheck" class="error_valid" ></span></li>
								  <li><label>IP :</label> <span>&nbsp;&nbsp;</span> <input type="text" name="IP" id="IP" /><span id="errorIP" class="error_valid" ></span>
								  </li>
								  <li><label>Mobile no :</label> <span>&nbsp;&nbsp;</span> 
								  <span style="float:left;width:100px;margin-left:8px;"><?php include('flag.phtml');?></span>
								  <!--<input name="tags1" id="tags1" type="text" style="width:50px;" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" value="India(+91)" />--> 
								  <span style="float:left;margin-left:20px;">
								  <input name="mobile" id="mobile" type="text" style="width:100px"/></span>
								  <span id="errormobile" class="error_valid" >
								  <div class="clear"></div>
								  </li>
								  <li><input type="submit" name="submit" value="Register" />
								   <input type="hidden" name="tag1" id="tag1" value="">
								  </li>
								</ul>
						  </form><br/>
						  <span><?if(isset($_GET['id'])){ if($_GET['id']==0){  ?><p style="color:red;margin=0px 0px 0px 0px;">Username already exits</p><?php } } ?></span>
					  </div>
					</div>
					<!--INNER CONTENT LEFT SECTION END-->
				</div>
				<!--CONTENT MAIN SECTION END-->
				<div class="clear"></div>
			  
				<!--CLIENTS AREA SECTION START-->
					<aside class="content-main-sec ot-lg-sec"> <img src="<?php echo $this->basePath(); ?>/images/truste.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/secured.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/mcafeev.jpg" alt="">
						<h3 class="otg-title">Trusted. Safe. Reliable.</h3>
					</aside>
				<!--CLIENTS AREA SECTION END-->
				<div class="clear"></div>
			</section>
		</div>
	<!--CONTENT SECTION END--> 
	</body>
</html>




